<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Message</title>
    <link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap.min.css') }}">
    <script src="{{ url_for('static',filename='js/jquery.min.js') }}"></script>
    <script src="{{ url_for('static',filename='js/echarts.all.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static',filename='js/bootstrap.min.js') }}"></script>
    <script src="{{ url_for('static',filename='js/tinymce/tinymce.min.js') }}"></script>
    <script src="{{ url_for('static',filename='js/tinymce_setup.js') }}"></script>
</head>
<body>
<div class="container">
    <div class="jumbotron">
        <h1>留言Demo</h1>
    </div>
    <form action="/post" method="post" >
        <div class="form-group">
            <label for="exampleInputEmail1">姓名</label>
            <input type="text" class="form-control" name="name">
        </div>
        <div class="form-group">
            <p>内容:</p>
            <input class="editor" name="content" id="content">
        </div>
        <button type="submit" class="btn btn-default">提交</button>
    </form>
    <hr>
    <div class="container">
        <div class="container">
            {% for info in info_box %}
                <p><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;{{ info.name }}<span class="glyphicon glyphicon-calendar"></span>&nbsp;&nbsp;{{ info.capture_time }}</p>
                {{ info.content | safe }}
            {% endfor %}

        </div>
    </div>
</div>
</body>
</html>